package com.oymn.myapplication.page;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.oymn.myapplication.R;

public class Fragment2 extends Fragment {
    private ImageView img2 = null;
    private Bitmap bitmap = null;

    public Fragment2(Bitmap bitmap){
        super(R.layout.fragment2);
        this.bitmap = bitmap;
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        img2 = view.findViewById(R.id.pic_fragment2);
        img2.setImageBitmap(bitmap);
    }
}